home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-08-10 | 13.5 KB | 328 lines | [TEXT/MPS ] |
- (*
- File: IntlResources.mod
-
- Contains: International Resource definitions.
-
- Version: Technology: System 7.5
- Package: Universal Interfaces 2.0 in “MPW Latest” on ETO #17
-
- Copyright: © 1984-1995 by Apple Computer, Inc.
- All rights reserved.
-
- Bugs?: If you find a problem with this file, use the Apple Bug Reporter
- stack. Include the file and version information (from above)
- in the problem description and send to:
- Internet: apple.bugs.applelink.apple.com
- AppleLink: APPLE.BUGS
-
- *)
-
- (*$TAGS-*)
- (*$CALLING PASCAL*)
- MODULE IntlResources;
-
- IMPORT SYSTEM, Types;
-
- (* $PUSH*)
- (* $ALIGN MAC68K*)
- (* $LibExport+*)
-
- CONST
- (* Bits in the itlcFlags byte *)
- itlcShowIcon* = 7; (*Show icon even if only one script*)
- itlcDualCaret* = 6; (*Use dual caret for mixed direction text*)
- (* Bits in the itlcSysFlags word *)
- itlcSysDirection* = 15; (*System direction - left to right/right to left*)
- (* the NumberParts indices *)
- tokLeftQuote* = 1;
- tokRightQuote* = 2;
- tokLeadPlacer* = 3;
- tokLeader* = 4;
- tokNonLeader* = 5;
- tokZeroLead* = 6;
- tokPercent* = 7;
- tokPlusSign* = 8;
- tokMinusSign* = 9;
- tokThousands* = 10;
- tokSeparator* = 12; (*11 is a reserved field*)
- tokEscape* = 13;
- tokDecPoint* = 14;
- tokEPlus* = 15;
- tokEMinus* = 16;
- tokMaxSymbols* = 31;
- curNumberPartsVersion* = 1; (*current version of NumberParts record*)
-
- currSymLead* = 16;
- currNegSym* = 32;
- currTrailingZ* = 64;
- currLeadingZ* = 128;
-
- mdy* = 0;
- dmy* = 1;
- ymd* = 2;
- myd* = 3;
- dym* = 4;
- ydm* = 5;
-
-
- TYPE
- DateOrders* = Types.SInt8;
-
-
- CONST
- timeCycle24* = 0; (*time sequence 0:00 - 23:59*)
- timeCycleZero* = 1; (*time sequence 0:00-11:59, 0:00 - 11:59*)
- timeCycle12* = 255; (*time sequence 12:00 - 11:59, 12:00 - 11:59*)
- zeroCycle* = 1; (*old name for timeCycleZero*)
- longDay* = 0; (*day of the month*)
- longWeek* = 1; (*day of the week*)
- longMonth* = 2; (*month of the year*)
- longYear* = 3; (*year*)
- supDay* = 1; (*suppress day of month*)
- supWeek* = 2; (*suppress day of week*)
- supMonth* = 4; (*suppress month*)
- supYear* = 8; (*suppress year*)
- dayLdingZ* = 32;
- mntLdingZ* = 64;
- century* = 128;
- secLeadingZ* = 32;
- minLeadingZ* = 64;
- hrLeadingZ* = 128;
-
- (* move OffsetTable to QuickdrawText *)
-
- TYPE
- Intl0Rec* = (*ΔΔPACKEDΔΔ*) RECORD
- decimalPt*: CHAR; (*decimal point character*)
- thousSep*: CHAR; (*thousands separator character*)
- listSep*: CHAR; (*list separator character*)
- currSym1*: CHAR; (*currency symbol*)
- currSym2*: CHAR;
- currSym3*: CHAR;
- currFmt*: Types.UInt8; (*currency format flags*)
- dateOrder*: Types.UInt8; (*order of short date elements*: mdy, dmy, etc.*)
- shrtDateFmt*: Types.UInt8; (*format flags for each short date element*)
- dateSep*: CHAR; (*date separator character*)
- timeCycle*: Types.UInt8; (*specifies time cycle*: 0..23, 1..12, or 0..11*)
- timeFmt*: Types.UInt8; (*format flags for each time element*)
- mornStr*: (*ΔΔPACKEDΔΔ*) ARRAY 4 (*ΔΔ[1..4]ΔΔ*) OF CHAR; (*trailing string for AM if 12-hour cycle*)
- eveStr*: (*ΔΔ PACKED*) ARRAY 4 (*ΔΔ[1..4]ΔΔ*) OF CHAR; (*trailing string for PM if 12-hour cycle*)
- timeSep*: CHAR; (*time separator character*)
- time1Suff*: CHAR; (*trailing string for AM if 24-hour cycle*)
- time2Suff*: CHAR;
- time3Suff*: CHAR;
- time4Suff*: CHAR;
- time5Suff*: CHAR; (*trailing string for PM if 24-hour cycle*)
- time6Suff*: CHAR;
- time7Suff*: CHAR;
- time8Suff*: CHAR;
- metricSys*: Types.UInt8; (*255 if metric, 0 if inches etc.*)
- intl0Vers*: INTEGER; (*region code (hi byte) and version (lo byte)*)
- END;
-
- Intl0Ptr* = POINTER TO Intl0Rec;
- Intl0Hndl* = HANDLE TO Intl0Rec (*ΔΔ POINTER TO Intl0RecPtr*);
-
- Intl1Rec* = (*ΔΔPACKEDΔΔ*) RECORD
- days*: ARRAY 7 (*ΔΔ[1..7]ΔΔ*) OF Types.Str15; (*day names*)
- months*: ARRAY 12 (*ΔΔ[1..12]ΔΔ*) OF Types.Str15; (*month names*)
- suppressDay*: Types.UInt8; (*255 for no day, or flags to suppress any element*)
- lngDateFmt*: Types.UInt8; (*order of long date elements*)
- dayLeading0*: Types.UInt8; (*255 for leading 0 in day number*)
- abbrLen*: Types.UInt8; (*length for abbreviating names*)
- st0*: (*ΔΔ PACKED*) ARRAY 4 (*ΔΔ[1..4]ΔΔ*) OF CHAR; (*separator strings for long date format*)
- st1*: (*ΔΔ PACKED*) ARRAY 4 (*ΔΔ[1..4]ΔΔ*) OF CHAR;
- st2*: (*ΔΔ PACKED*) ARRAY 4 (*ΔΔ[1..4]ΔΔ*) OF CHAR;
- st3*: (*ΔΔ PACKED*) ARRAY 4 (*ΔΔ[1..4]ΔΔ*) OF CHAR;
- st4*: (*ΔΔ PACKED*) ARRAY 4 (*ΔΔ[1..4]ΔΔ*) OF CHAR;
- intl1Vers*: INTEGER; (*region code (hi byte) and version (lo byte)*)
- localRtn*: ARRAY 1 (*ΔΔ[0..0]ΔΔ*) OF INTEGER; (*now a flag for opt extension*)
- END;
-
- Intl1Ptr* = POINTER TO Intl1Rec;
- Intl1Hndl* = HANDLE TO Intl1Rec (*ΔΔ POINTER TO Intl1RecPtr*);
-
- (*fields for optional itl1 extension*)
- Itl1ExtRec* = RECORD
- base*: Intl1Rec; (*un-extended Intl1Rec*)
- version*: INTEGER;
- format*: INTEGER;
- calendarCode*: INTEGER; (*calendar code for this itl1 resource*)
- extraDaysTableOffset*: LONGINT; (*offset in itl1 to extra days table*)
- extraDaysTableLength*: LONGINT; (*length of extra days table*)
- extraMonthsTableOffset*: LONGINT; (*offset in itl1 to extra months table*)
- extraMonthsTableLength*: LONGINT; (*length of extra months table*)
- abbrevDaysTableOffset*: LONGINT; (*offset in itl1 to abbrev days table*)
- abbrevDaysTableLength*: LONGINT; (*length of abbrev days table*)
- abbrevMonthsTableOffset*: LONGINT; (*offset in itl1 to abbrev months table*)
- abbrevMonthsTableLength*: LONGINT; (*length of abbrev months table*)
- extraSepsTableOffset*: LONGINT; (*offset in itl1 to extra seps table*)
- extraSepsTableLength*: LONGINT; (*length of extra seps table*)
- tables*: ARRAY 1 (*ΔΔ[0..0]ΔΔ*) OF INTEGER; (*now a flag for opt extension*)
- END;
-
- UntokenTable* = RECORD
- len*: INTEGER;
- lastToken*: INTEGER;
- index*: ARRAY 256 (*ΔΔ[0..255]ΔΔ*) OF INTEGER; (*index table; last* = lastToken*)
- END;
-
- UntokenTablePtr* = POINTER TO UntokenTable;
- UntokenTableHandle* = HANDLE TO UntokenTable (*ΔΔ POINTER TO UntokenTablePtr*);
-
- WideChar* = RECORD
- (*ΔΔ CASE INTEGER OF
- 0: ( *)
- a*: (*ΔΔPACKEDΔΔ*) ARRAY 2 (*ΔΔ[0..1]ΔΔ*) OF CHAR; (*0 is the high order character*)
- (*);
- 1: (
- b*: INTEGER;
- );*)
- END;
-
- WideCharArr* = RECORD
- size*: INTEGER;
- data*: ARRAY 10 (*ΔΔ[0..9]ΔΔ*) OF WideChar;
- END;
-
- NumberParts* = RECORD
- version*: INTEGER;
- data*: (*ΔΔPACKEDΔΔ*) ARRAY 31 (*ΔΔ[0..30]*) OF WideChar; (*index by [tokLeftQuote..tokMaxSymbols]ΔΔ*)
- pePlus*: WideCharArr;
- peMinus*: WideCharArr;
- peMinusPlus*: WideCharArr;
- altNumTable*: WideCharArr;
- reserved*: (*ΔΔPACKEDΔΔ*) ARRAY 20 (*ΔΔ[0..19]ΔΔ*) OF CHAR;
- END;
-
- NumberPartsPtr* = POINTER TO NumberParts;
-
- Itl4Rec* = RECORD
- flags*: INTEGER; (*reserved*)
- resourceType*: LONGINT; (*contains LONG("itl4")*)
- resourceNum*: INTEGER; (*resource AIFF.ID*)
- version*: INTEGER; (*version number*)
- resHeader1*: LONGINT; (*reserved*)
- resHeader2*: LONGINT; (*reserved*)
- numTables*: INTEGER; (*number of tables, one-based*)
- mapOffset*: LONGINT; (*offset to table that maps byte to token*)
- strOffset*: LONGINT; (*offset to routine that copies canonical string*)
- fetchOffset*: LONGINT; (*offset to routine that gets next byte of character*)
- unTokenOffset*: LONGINT; (*offset to table that maps token to canonical string*)
- defPartsOffset*: LONGINT; (*offset to default number parts table*)
- resOffset6*: LONGINT; (*reserved*)
- resOffset7*: LONGINT; (*reserved*)
- resOffset8*: LONGINT; (*reserved*)
- END;
-
- Itl4Ptr* = POINTER TO Itl4Rec;
- Itl4Handle* = HANDLE TO Itl4Rec (*ΔΔ POINTER TO Itl4RecPtr*);
-
- (* New NItl4Rec for System 7.0: *)
- NItl4Rec* = RECORD
- flags*: INTEGER; (*reserved*)
- resourceType*: LONGINT; (*contains LONG("itl4")*)
- resourceNum*: INTEGER; (*resource AIFF.ID*)
- version*: INTEGER; (*version number*)
- format*: INTEGER; (*format code*)
- resHeader*: INTEGER; (*reserved*)
- resHeader2*: LONGINT; (*reserved*)
- numTables*: INTEGER; (*number of tables, one-based*)
- mapOffset*: LONGINT; (*offset to table that maps byte to token*)
- strOffset*: LONGINT; (*offset to routine that copies canonical string*)
- fetchOffset*: LONGINT; (*offset to routine that gets next byte of character*)
- unTokenOffset*: LONGINT; (*offset to table that maps token to canonical string*)
- defPartsOffset*: LONGINT; (*offset to default number parts table*)
- whtSpListOffset*: LONGINT; (*offset to white space code list*)
- resOffset7*: LONGINT; (*reserved*)
- resOffset8*: LONGINT; (*reserved*)
- resLength1*: INTEGER; (*reserved*)
- resLength2*: INTEGER; (*reserved*)
- resLength3*: INTEGER; (*reserved*)
- unTokenLength*: INTEGER; (*length of untoken table*)
- defPartsLength*: INTEGER; (*length of default number parts table*)
- whtSpListLength*: INTEGER; (*length of white space code list*)
- resLength7*: INTEGER; (*reserved*)
- resLength8*: INTEGER; (*reserved*)
- END;
-
- NItl4Ptr* = POINTER TO NItl4Rec;
- NItl4Handle* = HANDLE TO NItl4Rec (*ΔΔ POINTER TO NItl4RecPtr*);
-
- TableDirectoryRecord* = RECORD
- tableSignature*: Types.OSType; (*4 byte long table name *)
- reserved*: LONGINT; (*Reserved for internal use *)
- tableStartOffset*: LONGINT; (*Table start offset in byte*)
- tableSize*: LONGINT; (*Table size in byte*)
- END;
-
- Itl5Record* = RECORD
- versionNumber*: Types.Fixed; (*itl5 resource version number *)
- numberOfTables*: INTEGER; (*Number of tables it contains *)
- reserved*: ARRAY 3 (*ΔΔ[0..2]ΔΔ*) OF INTEGER; (*Reserved for internal use *)
- tableDirectory*: ARRAY 1 (*ΔΔ[0..0]ΔΔ*) OF TableDirectoryRecord; (*Table directory records *)
- END;
-
- RuleBasedTrslRecord* = RECORD
- sourceType*: INTEGER; (*Transliterate target type for the LHS of the rule *)
- targetType*: INTEGER; (*Transliterate target type for the RHS of the rule *)
- formatNumber*: INTEGER; (*Transliterate resource format number *)
- propertyFlag*: INTEGER; (*Transliterate property flags *)
- numberOfRules*: INTEGER; (*Number of rules following this field *)
- END;
-
- ItlcRecord* = RECORD
- itlcSystem*: INTEGER; (*default system script*)
- itlcReserved*: INTEGER; (*reserved*)
- itlcFontForce*: Types.SInt8; (*default font force flag*)
- itlcIntlForce*: Types.SInt8; (*default intl force flag*)
- itlcOldKybd*: Types.SInt8; (*MacPlus intl keybd flag*)
- itlcFlags*: Types.SInt8; (*general flags*)
- itlcIconOffset*: INTEGER; (*keyboard icon offset; not used in 7.0*)
- itlcIconSide*: Types.SInt8; (*keyboard icon side; not used in 7.0*)
- itlcIconRsvd*: Types.SInt8; (*rsvd for other icon info*)
- itlcRegionCode*: INTEGER; (*preferred verXxx code*)
- itlcSysFlags*: INTEGER; (*flags for setting system globals*)
- itlcReserved4*: (*ΔΔPACKEDΔΔ*) ARRAY 32 (*ΔΔ[0..31]ΔΔ*) OF Types.SInt8; (*for future use*)
- END;
-
- ItlbRecord* = RECORD
- itlbNumber*: INTEGER; (*itl0 id number*)
- itlbDate*: INTEGER; (*itl1 id number*)
- itlbSort*: INTEGER; (*itl2 id number*)
- itlbFlags*: INTEGER; (*Script flags*)
- itlbToken*: INTEGER; (*itl4 id number*)
- itlbEncoding*: INTEGER; (*itl5 AIFF.ID # (optional; char encoding)*)
- itlbLang*: INTEGER; (*current language for script *)
- itlbNumRep*: Types.SInt8; (*number representation code*)
- itlbDateRep*: Types.SInt8; (*date representation code *)
- itlbKeys*: INTEGER; (*KCHR id number*)
- itlbIcon*: INTEGER; (*AIFF.ID # of SICN or kcs#/kcs4/kcs8 suite.*)
- END;
-
- (* New ItlbExtRecord structure for System 7.0 *)
- ItlbExtRecord* = (*ΔΔPACKEDΔΔ*) RECORD
- base*: ItlbRecord; (*un-extended ItlbRecord*)
- itlbLocalSize*: LONGINT; (*size of script's local record*)
- itlbMonoFond*: INTEGER; (*default monospace FOND AIFF.ID*)
- itlbMonoSize*: INTEGER; (*default monospace font size*)
- itlbPrefFond*: INTEGER; (*preferred FOND AIFF.ID*)
- itlbPrefSize*: INTEGER; (*preferred font size*)
- itlbSmallFond*: INTEGER; (*default small FOND AIFF.ID*)
- itlbSmallSize*: INTEGER; (*default small font size*)
- itlbSysFond*: INTEGER; (*default system FOND AIFF.ID*)
- itlbSysSize*: INTEGER; (*default system font size*)
- itlbAppFond*: INTEGER; (*default application FOND AIFF.ID*)
- itlbAppSize*: INTEGER; (*default application font size*)
- itlbHelpFond*: INTEGER; (*default Help Mgr FOND AIFF.ID*)
- itlbHelpSize*: INTEGER; (*default Help Mgr font size*)
- itlbValidStyles*: Types.Style; (*set of valid styles for script*)
- itlbAliasStyle*: Types.Style; (*style (set) to mark aliases*)
- END;
-
-
- (* $ALIGN RESET*)
- (* $POP*)
-
- END IntlResources.
-